package com.icangya.domain;

import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.OptimisticLockType;
import org.hibernate.annotations.OptimisticLocking;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by cangya5 on 2017/5/8.
 */

@Entity
@Table(name = "tbl_domain")
public class DomainDO {

    private Long id;
    /**
     * 主键
     */
    private String domainUrl;
    /**
     * 域名
     */
    private String isavailable;
    /**
     * 是否可用
     *
     */


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name="domain_url")
    public String getDomainUrl() {
        return domainUrl;
    }

    public void setDomainUrl(String domainUrl) {
        this.domainUrl = domainUrl;
    }

    @Basic
    @Column(name="isavailable")
    public String getIsavailable() {
        return isavailable;
    }

    public void setIsavailable(String isavailable) {
        this.isavailable = isavailable;
    }

    public DomainDO(Long id, String domainUrl, String isavailable) {
        this.id = id;
        this.domainUrl = domainUrl;
        this.isavailable = isavailable;
    }

    @Override
    public String toString() {
        return "DomainDO{" +
                "id=" + id +
                ", domainUrl='" + domainUrl + '\'' +
                ", isavailable='" + isavailable + '\'' +
                '}';
    }

    public DomainDO() {
    }
}
